package com.house.service.impl;

import com.house.entity.PO.UsersPO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.house.dao.UserMapper;
import com.house.entity.Users;
import com.house.service.IUserService;

import java.util.ArrayList;
import java.util.List;
import java.util.logging.Logger;

@Service
public class UserServiceImpl implements IUserService{

	private static Logger logger = Logger.getLogger(String.valueOf(UserServiceImpl.class));

	@Autowired
	private UserMapper mapper;
	
	@Override
	public Users login(Users user) {
		return mapper.login(user);
	}

	@Override
	public int regist(Users user) {
		return mapper.regist(user);
	}

	@Override
	public int updateUserPwd(Users users) {
		return mapper.updateUserPwd(users);
	}

	@Override
	public Users checkOldPwd(Users users) {
		return mapper.checkOldPwd(users);
	}

	@Override
	public List<Users> findUserByCondition(UsersPO usersPO) {
		return mapper.findUserByCondition(usersPO);
	}

	@Override
	public int updateUserInfo(Users users) {
		return mapper.updateUserInfo(users);
	}
}
